var bubR=10;

var bubRRD;
var bubRRD_X;
var bubRRD_Y;
var bubRRD_H;
var bubRRD_W;
var bubRRD_R;
var strStyle;
var scLength;
var bubDg;

var halfBCH;
var halfBCW;

var centerY=$("#bubbles").height()/2;
var centerX=$("#bubbles").width()/2;

$(document).ready(function() {
		scLength=scatterResults.length;
		for(i=scLength-1;i<scLength;i--){
			if(i>0){
				bubDg=360*(i-1)/(scLength-1);
				bubRRD_R=bubDg+((Math.random()-.5)*0.2)-70;
				bubRRD_X=centerX-15+Math.floor(Math.cos(bubRRD_R)*bubR*12);
				bubRRD_Y=centerY+Math.floor(Math.sin(bubRRD_R)*bubR*12);

				bubRRD_W=(Math.random()*bubR+40)*2;
				bubRRD_H=bubRRD_W;
				strStyle="style='height:" +
					bubRRD_H+"px;width:"+ bubRRD_W +
					"px;top:"+
					bubRRD_Y+"px;left:"+
					bubRRD_X+"px;'";
				var str="<span "+strStyle+ ">"+ scatterResults[i].keyWord +"</span>";
				$("#bubbles").append(str);
			}else{
				strStyle="class='bubCenter' style='height:"+
					bubR*16+"px;width:"+ bubR*16 +
					"px;top:"+(centerY-50)+"px;left:"+(centerX-50)+"px'";

			}
			var str="<span "+strStyle+ ">"+ scatterResults[i].keyWord +"</span>";
			$("#bubbles").append(str);
		}
	});
